package cn.tedu.micro.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.*;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "students")
@Setting(shards = 1,replicas = 0)
public class StudentEsPO {
    @Field(type = FieldType.Integer)
    private Integer id;
    @Field(type = FieldType.Keyword)
    private String name;
    @Field(type = FieldType.Text)
    private String profile ;
    @Field(type = FieldType.Date,format = DateFormat.date_hour_minute_second)
    private Date birthday;
}
